#!/bin/bash

# rm -rf php-docker-dist/
# git clone ssh://git@192.168.31.222:8022/php/php-docker-dist.git
# cd php-docker-dist
# git=`git log | head -1 | awk '{print substr($0,8,6)}'`
# name=139.198.2.55/php-dev/php-docker-dist:1.0.1_`date +%Y%m%d%H%M%S000`_$git

# name=54.223.110.70/php-dev/php-docker-dist:nginx-1.0.1
name=54.223.110.70/php-dev/welsongame-docker-dist:nginx-lan-1.0.37

# docker build --no-cache --rm -t $name  .
docker build --rm -t $name  .
docker login -uyafei -p321JhQcPhp 54.223.110.70
docker push $name
docker logout 54.223.110.70
